package com.qfjy.homework.wangjun;

/**
 * @author wj
 * @version 1.0
 * @date 2023/6/29 20:49
 */
public class ProxyPatternDemo {
    public static void main(String[] args) {
        Image image = new ProxyImage("1.png");

        // 图像将从磁盘加载
        image.display();
        System.out.println(" ");
        // 图像不需要从磁盘加载
        image.display();
    }
}
